package io.lkt.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.lkt.modules.sys.entity.BArticleInfoEntity;
import io.lkt.modules.sys.entity.HeadlineTitleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface HeadlineTitleInfoDao extends BaseMapper<HeadlineTitleInfo> {

    List<String> selectGzhName();

    List<HeadlineTitleInfo> selectTitleInfoByTitle();

    void headlineRelation(@Param("articleId") Integer articleId, @Param("headlineTitleId") Integer headlineTitleId,@Param("userId")Integer userId);

    List<Integer> selectHeadlineIdsByArticleId(Integer id);

    void delHeadlineRelation(Integer id);

    List<HeadlineTitleInfo> selectHeadlineTitle();
}
